const isString=(value:unknown):value is string => typeof value === 'string';
const isNumber=(value:unknown):value is number => typeof value === 'number';
const isSymbol=(value:unknown):value is symbol => typeof value === 'symbol';

let str='hello';
if(isString(str)){
    console.log(str.toUpperCase());
}
